﻿using Macro_stone.PoModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.Common;

namespace Macro_stone.IRepository.SystemManager.CommonlyUsedManager
{
    /// <summary>
    /// 客户录入
    /// </summary>
    public interface ICustomerInputRepository
    {
        /// <summary>
        /// 添加基本信息
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        bool CustomerPoAdd(CustomerPo view);

        /// <summary>
        /// 添加甲方负责人
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        bool ResponsiblePersonPoAdd(ResponsiblePersonPo view);



        /// <summary>
        /// 添加满意度调查
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        bool SatisfactionSurveyPoAdd(SatisfactionSurveyPo view);

        /// <summary>
        /// 添加文件
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        bool AccessoryPoAdd(AccessoryPo view);

        /// <summary>
        /// 客户信息—显示
        /// </summary>
        /// <param name="searchModel"></param>
        /// <returns></returns>
        List<CustomerPo> CustomerPoInquire(int pageIndex, int pageSize, int? createTime, string customerName, DateTime? beginTime, DateTime? endTime, string customerSerialNum, string linkman);
        /// <summary>
        /// 联系人信息—显示
        /// </summary>
        /// <param name="searchModel"></param>
        /// <returns></returns>
        List<CustomerPo> ResponsiblePersonPoInquire(int pageIndex, int pageSize, string personName, DateTime? entryTime, DateTime? abortTime);

        /// <summary>
        /// 联系人信息—反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool ResponsiblePersonPoBackfill(int id);

        /// <summary>
        /// 项目前期信息—显示
        /// </summary>
        /// <param name="searchModel"></param>
        /// <returns></returns>
        List<AccessoryPo> AccessoryDtoInquire(int pageIndex, int pageSize, string wenName, DateTime? begintime, DateTime? endtime);

        /// <summary>
        /// 项目前期信息—删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        bool AccessoryDtoDelete(int ids);

        /// <summary>
        /// 项目前期信息—编辑
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        bool AccessoryDtoEdits(AccessoryPo view);

        /// <summary>
        /// 项目前期信息—添加
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        bool AccessoryDtoAdd(AccessoryPo view);

        /// <summary>
        /// 项目前期信息—反填
        /// </summary>
        /// <param name="view"></param>
        /// <returns></returns>
        AccessoryPo AccessoryPoOne(int id);


    }
}
